package com.example.chat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chat.beans.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper extends BaseMapper<Order> {
    IPage<Order> selectBySearch(Page<Order> pages,
                                @Param("tel") String tel,
                                @Param("isMine") Integer isMine,
                                @Param("userId") Integer userId);

    Order selectByNumber(@Param("number") String number);
}
